home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / y2k_tetr.swf / scripts / DefineSprite_204 / frame_17 / DoAction.as
Encoding:
Text File  |  2010-08-12  |  547 b   |  30 lines

  1. if(tk >= "0")
  2. {
  3.    x1 = "1";
  4.    while("10" >= x1)
  5.    {
  6.       setProperty(eval("dim" add x1 add "_" add row), _alpha, tk * "5");
  7.       x1 += "1";
  8.    }
  9.    t = row;
  10.    while(t >= "1")
  11.    {
  12.       x1 = "1";
  13.       t1 = t - "1";
  14.       while("10" >= x1)
  15.       {
  16.          if(eval("dim" add x1 add "_" add t1) ne "")
  17.          {
  18.             setProperty(eval("dim" add x1 add "_" add t1), _Y, t1 * "10" - "5" + ("10" - tk));
  19.          }
  20.          x1 += "1";
  21.       }
  22.       t -= "1";
  23.    }
  24.    tk -= "5";
  25. }
  26. else
  27. {
  28.    gotoAndPlay(20);
  29. }
  30.